package cqqspringcloud.service.impl;



import com.cqqspringcloud.entiy.Payment;

import cqqspringcloud.dao.PaymentDao;
import cqqspringcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceimpl  implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentbyId(Long id) {
        return paymentDao.getPaymentbyId(id);
    }
}
